package com.qingcheng.service.goods;

import com.qingcheng.entity.PageResult;
import com.qingcheng.pojo.goods.Brand;

import java.util.List;
import java.util.Map;

public interface BrandService {
    //查询所有
    public List<Brand> findAll();

    //分页查询
    public PageResult<Brand> findPage(int page,int size);

    //条件查询
    public List<Brand> findList(Map<String,Object> searchMap);

    //分页条件查询
    public List<Brand> findListByPage(int page,int xize,Map searchMap);

    //id查询
    public Brand findById(Integer id);

    //新增
    public void add(Brand brand);

    //修改
    public void update(Brand brand);

    //删除
    public void delete(Integer id);
}
